package org.example.data;

import org.example.model.Course;
import org.example.model.Student;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class GeneratedData {

    public static List<Student> getStudents(){
        List<Student> students = new ArrayList<>();

        Student student1 = new Student();
        student1.setStudentName("学生1");
        List<Course> courseList1 = Arrays.asList(new Course("1"),new Course("2"),new Course("3"));
        student1.setCourseList(courseList1);
        students.add(student1);

        Student student2 = new Student();
        student2.setStudentName("学生2");
        List<Course> courseList2 = Arrays.asList(new Course("4"),new Course("5"),new Course("6"));
        student2.setCourseList(courseList2);
        students.add(student2);

        Student student3 = new Student();
        student3.setStudentName("学生3");
        List<Course> courseList3 = Arrays.asList(new Course("7"),new Course("8"),new Course("9"));
        student3.setCourseList(courseList3);
        students.add(student3);
        return students;
    }
}
